package com.jsgt.greekfire.dao.viewmodel

import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.jsgt.greekfire.App.Companion.context

class MarketBeanViewModelFactory(context: Context, private val inArray:Array<String?>) : ViewModelProvider.NewInstanceFactory() {
        @Suppress("UNCHECKED_CAST")
        override fun <T : ViewModel?> create(modelClass: Class<T>): T {
            return MarketBeanViewModel(context, inArray) as T
        }
}